import request from '@/utils/request'

// 查询权益人管理列表
export function listBeneficiaries(query) {
  return request({
    url: '/system/Beneficiaries/list',
    method: 'get',
    params: query
  })
}

// 查询权益人管理详细
export function getBeneficiaries(id) {
  return request({
    url: '/system/Beneficiaries/' + id,
    method: 'get'
  })
}

// 新增权益人管理
export function addBeneficiaries(data) {
  return request({
    url: '/system/Beneficiaries',
    method: 'post',
    data: data
  })
}

// 修改权益人管理
export function updateBeneficiaries(data) {
  return request({
    url: '/system/Beneficiaries',
    method: 'put',
    data: data
  })
}

// 删除权益人管理
export function delBeneficiaries(id) {
  return request({
    url: '/system/Beneficiaries/' + id,
    method: 'delete'
  })
}
